package com.js.nickcar.entity.remote;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by LZY on 2017/9/29.
 */

public class OptionBean implements Parcelable {
    private  String kvp_id;
    private  String type;
    private  String value;
    private String description;


    public String getKvp_id() {
        return kvp_id;
    }

    public void setKvp_id(String kvp_id) {
        this.kvp_id = kvp_id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;

        OptionBean that = (OptionBean) object;

        return kvp_id != null ? kvp_id.equals(that.kvp_id) : that.kvp_id == null;

    }

    @Override
    public int hashCode() {
        return kvp_id != null ? kvp_id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "OptionBean{" +
                "description='" + description + '\'' +
                ", kvp_id='" + kvp_id + '\'' +
                ", type='" + type + '\'' +
                ", value='" + value + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.kvp_id);
        dest.writeString(this.type);
        dest.writeString(this.value);
        dest.writeString(this.description);
    }

    public OptionBean() {
    }

    protected OptionBean(Parcel in) {
        this.kvp_id = in.readString();
        this.type = in.readString();
        this.value = in.readString();
        this.description = in.readString();
    }

    public static final Creator<OptionBean> CREATOR = new Creator<OptionBean>() {
        @Override
        public OptionBean createFromParcel(Parcel source) {
            return new OptionBean(source);
        }

        @Override
        public OptionBean[] newArray(int size) {
            return new OptionBean[size];
        }
    };
}
